package com.nft.service.school.feign;

import com.nft.service.school.req.SysDeptReq;
import com.nft.service.school.resp.SysDeptResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "nft-service-school", contextId = "schoolClient", path = "/schoolClient")
public interface ISysDeptClient {

    @RequestMapping(value = "/getList", method = RequestMethod.POST)
    public List<SysDeptResp> getList(@RequestBody SysDeptReq query);

    @RequestMapping(value = "/getPage", method = RequestMethod.POST)
    public List<SysDeptResp> getPage(@RequestBody SysDeptReq query);

    @RequestMapping(value = "/getCount", method = RequestMethod.POST)
    public Long getCount(@RequestBody SysDeptReq query);
}
